projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c0e6723
)
common/cmd_pxe.c: Fix GCC 4.6 build warnings
author
Heiko Schocher
<
[email protected]
>
Mon, 12 Dec 2011 20:37:17 +0000
(20:37 +0000)
committer
Anatolij Gustschin
<
[email protected]
>
Tue, 20 Dec 2011 21:28:51 +0000
(22:28 +0100)
Fix:
cmd_pxe.c: In function 'parse_pxefile_top':
cmd_pxe.c:941:5: warning: 'err' may be used uninitialized in this
function [-Wuninitialized]
cmd_pxe.c:921:6: note: 'err' was declared here
Signed-off-by: Heiko Schocher <
[email protected]
>
Cc: Jason Hobbs <
[email protected]
>
Acked-by: Jason Hobbs <
[email protected]
>
common/cmd_pxe.c
patch
|
blob
|
history
diff --git
a/common/cmd_pxe.c
b/common/cmd_pxe.c
index 9426f5b05bc6eec210d753d4cb167308c67475e9..7c0cb666681aa0c2ca8327da7524d28b9ca85066 100644
(file)
--- a/
common/cmd_pxe.c
+++ b/
common/cmd_pxe.c
@@
-918,7
+918,7
@@
static int parse_menu(char **c, struct pxe_menu *cfg, char *b, int nest_level)
{
struct token t;
char *s = *c;
- int err;
+ int err
= 0
;
get_token(c, &t, L_KEYWORD);